<?php
/**
* Job for ClassJob
*/
class Job_DemoEcho
{
    private $fp = null;

    public function setUp()
    {
        # Set up environment for this job
        $this->fp = fopen('echo.log', 'a');
    }

    public function perform()
    {
        # Run task
        fwrite($this->fp, '--perform job--');
    }

    public function tearDown()
    {
        # Remove environment for this job
        fclose($this->fp);
    }
}